﻿
@{
    ViewBag.Title = "JOBSCHEDULE";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var Cols = new Zephyr.Models.sys_roleMenuColumnMapService().GetCurrentUserMenuColumns();
}

@section scripts{
    <script src="/Content/js/viewModel/com.viewModel.search.js"></script>
    <script type="text/javascript">
        var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
        var viewModel = function(){ 
            com.viewModel.search.apply(this,arguments);
        }
        ko.bindingViewModel(new viewModel(data));
    </script>
}

    @Html.RenderToolbar()

    <div class="container_12" style="position:relative;">
        <div class="grid_1 lbl">SCHCODE</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.SCHCODE" class="z-txt " /></div>
        <div class="grid_1 lbl">WORKLINE</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.WORKLINE" class="z-txt " /></div>
        <div class="grid_1 lbl">SCHSEQNO</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.SCHSEQNO" class="z-txt " /></div>
        
        <div class="clear"></div>
        
        <div class="grid_1 lbl">PLANSOUR</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.PLANSOUR" class="z-txt " /></div>
        <div class="grid_1 lbl">PROMATCODE</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.PROMATCODE" class="z-txt " /></div>
        <div class="grid_1 lbl">PROMULA</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.PROMULA" class="z-txt " /></div>

        <div class="clear"></div>

        <div class="prefix_9" style="position:absolute;top:5px;height:0;">  
            <a id="a_search" href="#" class="buttonHuge button-blue" data-bind="click:searchClick" style="margin:0 15px;">查询</a> 
            <a id="a_reset"  href="#" class="buttonHuge button-blue" data-bind="click:clearClick">清空</a>
        </div>
    </div>
 
    <table data-bind="datagrid:grid">
            <thead>  
            <tr>  
                <th field="SCHCODE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"SCHCODE") >SCHCODE</th>
                <th field="WORKLINE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"WORKLINE") >WORKLINE</th>
                <th field="SCHSEQNO"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"SCHSEQNO") >SCHSEQNO</th>
                <th field="PLANSOUR"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PLANSOUR") >PLANSOUR</th>
                <th field="PROMATCODE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PROMATCODE") >PROMATCODE</th>
                <th field="PROMULA"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PROMULA") >PROMULA</th>
                <th field="CREATOR"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"CREATOR") >CREATOR</th>
                <th field="CREADATE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"CREADATE") >CREADATE</th>
                <th field="ORDERNO"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"ORDERNO") >ORDERNO</th>
                <th field="PBILL"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PBILL") >PBILL</th>
                <th field="PLANQTY"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PLANQTY") >PLANQTY</th>
                <th field="STARTQTY"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"STARTQTY") >STARTQTY</th>
                <th field="FINIQTY"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"FINIQTY") >FINIQTY</th>
                <th field="PLANSTARTDATE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PLANSTARTDATE") >PLANSTARTDATE</th>
                <th field="PLANFINDATE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PLANFINDATE") >PLANFINDATE</th>
                <th field="STARTDATE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"STARTDATE") >STARTDATE</th>
                <th field="FINIFDATE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"FINIFDATE") >FINIFDATE</th>
                <th field="PROSTATE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PROSTATE") >PROSTATE</th>
                <th field="PROQUASTATE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PROQUASTATE") >PROQUASTATE</th>
                <th field="PROPACK"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PROPACK") >PROPACK</th>
                <th field="PROREQUIRE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PROREQUIRE") >PROREQUIRE</th>
                <th field="SCHEDUDATE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"SCHEDUDATE") >SCHEDUDATE</th>
                <th field="DILIVERDATE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"DILIVERDATE") >DILIVERDATE</th>
                <th field="PRORUTEING"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PRORUTEING") >PRORUTEING</th>
                <th field="PROCODESTR"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PROCODESTR") >PROCODESTR</th>
            </tr>                            
        </thead>      
    </table>
 
